/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.brain.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 常量配置Entity
 * @author 程展峰
 * @version 2021-09-18
 */
public class BConfigureContant extends DataEntity<BConfigureContant> {
	
	private static final long serialVersionUID = 1L;
	private String tenantId;		// 租户ID
	private String code;		// 配置代码
	private String value;		// 配置值
	private Date expire;		// 过期时效  null:不过期
	private String quarter;		// 季度ID 可以为null
	
	public BConfigureContant() {
		super();
	}

	public BConfigureContant(String id){
		super(id);
	}

	@Length(min=0, max=64, message="租户ID长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
	@Length(min=1, max=255, message="配置代码长度必须介于 1 和 255 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=1, max=255, message="配置值长度必须介于 1 和 255 之间")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getExpire() {
		return expire;
	}

	public void setExpire(Date expire) {
		this.expire = expire;
	}
	
	@Length(min=0, max=255, message="季度ID 可以为null长度必须介于 0 和 255 之间")
	public String getQuarter() {
		return quarter;
	}

	public void setQuarter(String quarter) {
		this.quarter = quarter;
	}
	
}